<?php
// +----------------------------------------------------------------------
// | Tpli [ WE ONLY DO WHAT IS NECESSARY ]
// +----------------------------------------------------------------------
// | Author 荒年 < 931274989@qq.com >
// +----------------------------------------------------------------------
// | Explain 管理员验证
// +----------------------------------------------------------------------

namespace app\admin\validate;
class Admin extends BaseValidate
{
  protected $rule = [
    'name' => 'require|chsDash',
    'admin_cate_id' => 'require|isNotEmpty',
    'password' => 'require|confirm',
    'password_confirm' => 'require'

  ];

  protected $message = [
    'name.require' => '角色名称不能为空',
    'name.chsDash' => '用户名格式只能是汉子、字母、数字、——或_',
    'admin_cate_id.require' => '请选择管理员分组',
    'admin_cate_id.isNotEmpty' => '请选择管理员分组',
    'password_confirm.require' => '重复密码不能为空',
  ];
}
?>